/**
 *  This class stores data for plotting Linear Regression Graph
 */
package org.wmine.visualization.data;

import java.util.ArrayList;

import org.wmine.visualization.data.FrequencyDistributionData.FreqDistDataSingleClass;

/**
 * @author Rajeev Kumar Thakur
 *
 */
public class LinearRegData {
	
	ArrayList <LinearRegSingleData> linearRegDataList;
	
	public ArrayList<LinearRegSingleData> getLinearRegDataList() {
		return linearRegDataList;
	}

	public void setLinearRegDataList(
			ArrayList<LinearRegSingleData> linearRegDataList) {
		this.linearRegDataList = linearRegDataList;
	}

	public LinearRegSingleData  getLinearRegSingleDataInstance()
	{
		return (new LinearRegSingleData());
	}
	public class LinearRegSingleData {
		
		String attribute1;
		String attribute2;
		Double slope;
		Double intercept;
		public String getAttribute1() {
			return attribute1;
		}
		public void setAttribute1(String attribute1) {
			this.attribute1 = attribute1;
		}
		public String getAttribute2() {
			return attribute2;
		}
		public void setAttribute2(String attribute2) {
			this.attribute2 = attribute2;
		}
		public Double getIntercept() {
			return intercept;
		}
		public void setIntercept(Double intercept) {
			this.intercept = intercept;
		}
		 
		public Double getSlope() {
			return slope;
		}
		public void setSlope(Double slope) {
			this.slope = slope;
		}		
	}	
}
